When making a remote call to an application-defined function using MPRemoteCall
, you must pass a constant of type MPRemoteContext
in the context
parameter specifying which contexts are allowed to execute the function.
enum {
kMPAnyRemoteContext = 0,
kMPOwningProcessRemoteContext = 1
};
typedef UInt8 MPRemoteContext;
Constant Descriptions
kMPAnyRemoteContext
Any cooperative context can execute the function. Note that the called function may not have access to any of the owning context's process-specific low-memory values.
kMPOwningProcessRemoteContext
Only the context that owns the task can execute the function.